#ifndef CCSTREAMSERVER_H
#define CCSTREAMSERVER_H
#include"CCStreamServerDef.h"
#include"CCClientProcess.h"


class CCStreamServer{
public:
    CCStreamServer();
    ~CCStreamServer();
    void xExit();
    void StartTCPServer();
    void SendAVStream(uint8_t* buff,uint32_t len,uint16_t type);
    
private:
    void closeSockfd();
    
    void checkClientAlive();

private:
    int m_listenSocketfd;
    static bool m_isExit;
    std::vector<CCClientProcess*> m_clientsProcess;
};







#endif